﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using S4Store.Domain;
using S4Store.Domain.SellerCarBrand;

namespace S4Store.Models.SellerCarBrand
{
    public class ShowDataModel
    {
        public ShowDataModel()
        {
            Table = new Table();
        }
        public Table Table { get; set; }

        public List<SellerRow> SellerRows
        {
            get
            {
                return Table.Rows.GroupBy(t => t.Seller).Select(g => new SellerRow { Seller = g.Key, Rows=g.ToList() }).ToList();
            }
        }
    }


}